02. Codes Sets Background

Codes Sets Background

ND320 AIHCND C01 L02 A02 Codes Sets Background

Key Points

For the purposes of this course, when we refer to a code set we are referencing an EHR data field that is linked to an accepted code standard such as ICD10 or CPT codes, which you will learn more about shortly.
Examples of important code sets are diagnosis codes and procedure codes. We will go over these in more detail later.

Why do we need code sets?

There are many different providers and EHR systems around the world. There needs to be a standard way to encode common diagnoses, medications, procedures, and lab test results across all these providers and systems. We will focus on some of the most common code sets that allow for some of the most high-value analysis.

Context of a Medical Encounter

Context of a Medical Encounter

Context of a Medical Encounter

Medical Encounter: An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient.

This could also be online in today's world. During each encounter, one or more codes are generated about your encounter.

  1. It is important to note that medical records often go through a process from a written note or some other unstructured input to a structured medical code that is standardized but can be very specific. There is a whole industry of medical coders that take this unstructured information and “code” it to medical code standards and into EHR records.

  2. Another piece of information that is relevant to industry codes is whether the encounter occurred in an inpatient or outpatient setting.

    • Inpatient usually refers to hospitalization.
    • Outpatient refers to visits and encounters like visits with your primary care physician or specialists like a cardiologist but do not require hospitalization.
    • Outpatient can also refer to ambulatory care.

It is important to work with subject-matter experts who know the domain and processes at a much deeper level. There are a lot of intricacies and details in healthcare that require you to work deeply with SMEs to understand the context better.

However, you should feel empowered to bring the technology and AI perspective to the table and re-think legacy processes!

Importance of Using Codes to Group/Categorize Your Data

As you will see in a bit there are literally thousands of medical codes in use and each time have a Medical Encounter, you have several of these codes added to that encounter. If you do not properly group/categorize your data, you may end up with missing or incorrect data to feed into your model. As an example let's say you knew one of the diagnosis codes for Sepsis and wanted to build a model around predicting which patients are at the greatest risk for Sepsis.
Sepsis- sepsis during labor (O75.3)
If you used only that code to build your dataset for training you are likely missing out on thousands of other records that also deal with Sepsis, but have a different code.

Here is a link to the Sepsis codes to see some others: IDC10-CM Sepsis Codes

This would lead your model to be inaccurate. This concept will become clearer as dig deeper.

Medical Encounters

Which of the following are medical encounters?

SOLUTION:
  • A yearly checkup
  • Getting blood work
  • Having a CAT scan
  • An emergency visit